package com.danceforyou.receipt.model;

import com.danceforyou.common.model.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 类名称：ReceiptDO
 * 创建人：danceforyou
 * 创建时间：2021年02月07日
 * 版本号：1.0v
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ReceiptDO extends BaseDO<Long> {

    /*排期ID（引用yw_order表主键）*/
    private Long orderId;
    /*回款金额*/
    private BigDecimal recMoney;
    /*回款日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date recDate;
    /*申请人*/
    private Long createUserId;
    /*申请时间*/
    private Date createDate;
    /*申请事由*/
    private String createDesc;
    /*审核人*/
    private Long auditUserId;
    /*审核时间*/
    private Date auditDate;
    /*审核备注*/
    private String auditDesc;
    /*状态（1-待审核，2-审核不通过，3-审核通过）*/
    private Integer status;
    /*是否删除*/
    private Boolean isDelete;
}